package com.ls.fw.hadoop.client.bean;

import java.io.Serializable;

/**
 * hadoop 中文件信息类
 * <p>
 * </p>
 * 
 * @author ls 2013-8-30 下午04:47:35
 * @version V1.0
 * @modificationHistory=========================逻辑或功能性重大变更记录
 * @modify by user: {修改人} 2013-8-30
 * @modify by reason:{方法名}:{原因}
 */
public class FileTreeItem implements Serializable {
	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = 1L;
	private String name = "";// 文件名称
	private String path = "";// 文件路径
	private String isParent = "false";// 是否为目录
	private int page = 1;
	private int pageSize = 20;

	/**
	 * 
	 * 创建一个新的实例HadoopFile.
	 * 
	 * @param name
	 *            文件名称
	 * @param path
	 *            文件路径
	 */
	public FileTreeItem(String name, String path) {
		super();
		this.name = name;
		this.path = path;
	}

	/**
	 * 
	 * 创建一个新的实例HadoopFile.
	 * 
	 * @param name
	 *            文件名称
	 * @param path
	 *            文件路径
	 * @param isDir
	 *            是否为目录
	 */
	public FileTreeItem(String name, String path, boolean isParent) {
		super();
		this.name = name;
		this.path = path;
		this.isParent = "" + isParent;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Override
	public String toString() {
		return "FileTreeItem [isParent=" + isParent + ", name=" + name
				+ ", path=" + path + "]";
	}

	public String getIsParent() {
		return isParent;
	}

	public void setIsParent(String isParent) {
		this.isParent = isParent;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

}
